import request from '../utils/request'


// export interface finalPriceInfoVO{
//     banner
//     priceInfo
// }
// interface searchList {
//     id: number;
//     listPicUrl: string;
//     name: string
//     finalPriceInfoVO: any
// }

export const reqSearchAuto = (params: any) => {
    return request.post<any, any>(
        `search/searchAutoComplete.json?keywordPrefix=${params.keywordPrefix}`
    );
};
export const reqGetKeyWord = () => {
    return request.post<any, any>(`search/init.json`)
}
export const reqSearch = (params: any) => {
    return request.get<any, any>(`search/search.json`, { params })
}